#include "Geometry.h"
#include "IVertexBuffer.h"
#include "IRenderDevice.h"

namespace Rz { namespace Graphics { namespace Render {

Geometry::Geometry(IRenderDevice* renderDevice)
{
	this->SetRenderDevice(renderDevice);
	_vertexArray = renderDevice->CreateVertexArray();
}

const IVertexArray* Geometry::GetVertexArray() const
{
	return _vertexArray;
}

IVertexArray* Geometry::GetVertexArray()
{
	return _vertexArray;
}

const Math::BoundingBox& Geometry::GetBoundingBox() const
{
	return _boundingBox;
}

void Geometry::SetBoundingBox(const Math::BoundingBox& boundingBox)
{
	_boundingBox = boundingBox;
}

} } }

